package com.aaa.hospital.ManagementEnd.controller;


import com.aaa.hospital.ManagementEnd.pojo.Magetab;
import com.aaa.hospital.ManagementEnd.service.MagetabService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;


//徐要磊
@Controller
public class MagetabController {
    @Autowired
    private MagetabService magetabService;
    @RequestMapping("/magetab")
    @ResponseBody
    public List magetab(){
        List<Magetab> list=magetabService.queryAll();
        return list;
    }


}
